Skip to content

Fixed broken pnpm/action-setup pin in workflows#133

Merged
aileen merged 1 commit into
mainfrom
fix-pnpm-action-pin
Jun 10, 2026
Merged

Fixed broken pnpm/action-setup pin in workflows#133
aileen merged 1 commit into
mainfrom
fix-pnpm-action-pin

Conversation

@aileen

@aileen aileen commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Replaced the pnpm/action-setup pin ac6db6d3c1f721f886538a378a2d73e85697340a with 0e279bb959325dab635dd2c09392533439d90093 in .github/workflows/test.yml and .github/workflows/deploy-theme.yml.
  • The old digest no longer resolves as a commit upstream (GitHub returns HTTP 422), so any job using it fails at action resolution. Root cause: it is the annotated tag object SHA of the v6 tag, not a commit SHA — GitHub Actions can only resolve commit SHAs. The replacement is the verified commit the current v6/v6.0.8 tag points to.
  • No version comment appended, matching this repo's convention of bare digest pins.
  • Zip script audited per the related CodeRabbit findings in Changed package manager from yarn to pnpm Themes#529: the bestzip script uses explicit include globs (assets/* partials/* members/* *.hbs package.json) that cannot match pnpm-workspace.yaml, so no zip change is needed.

Verification

  • gh api repos/pnpm/action-setup/commits/ac6db6d... → HTTP 422 (confirmed broken); .../commits/0e279bb... resolves; git/tags/ac6db6d... dereferences to commit 0e279bb... (v6).
  • pnpm install --frozen-lockfile → up to date.
  • pnpm zip then unzip -l ghost-starter-theme.zip | grep -i 'pnpm\|workspace' → no matches; zip contains only theme assets, templates, and package.json (47 files).
  • pnpm test:ci (gscan fatal/verbose) → no fatal compatibility issues.

Ref: TryGhost/Themes#529

The pinned digest ac6db6d3c1f721f886538a378a2d73e85697340a no longer
resolves as a commit upstream (GitHub returns HTTP 422), so every job
using pnpm/action-setup fails at action resolution. It turned out to be
the annotated tag object SHA of the v6 tag rather than a commit SHA,
which GitHub Actions cannot resolve.

Replaced it with 0e279bb959325dab635dd2c09392533439d90093, the verified
commit the current v6/v6.0.8 tag points to.

Discovered by CodeRabbit during the monorepo pnpm migration in
TryGhost/Themes#529.
@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@aileen, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 10 minutes and 9 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 03ff3f2d-8504-4f8f-8c4b-2132690d5756

📥 Commits

Reviewing files that changed from the base of the PR and between f52867e and 762c811.

📒 Files selected for processing (2)
  • .github/workflows/deploy-theme.yml
  • .github/workflows/test.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-pnpm-action-pin

Comment @coderabbitai help to get the list of available commands and usage tips.

@aileen aileen merged commit ed1bb93 into main Jun 10, 2026
5 checks passed
@aileen aileen deleted the fix-pnpm-action-pin branch June 10, 2026 09:19
aileen added a commit that referenced this pull request Jun 10, 2026
The committed `assets/built/index.js` was produced by the development
build (`rollup --environment BUILD:development`): it began with the
livereload script-injection snippet, which every site using the Starter
theme shipped to visitors — attempting to load a livereload server from
the visiting host on port 35729. Rebuilt with `pnpm build` (production
mode), which drops the livereload plugin and bundles only the theme
code. Verified the rebuild is deterministic and gscan reports no errors
(4 pre-existing warnings unrelated to this change).

Found while fixing the pnpm action pin (#133).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant